/**
 * ClassName 部门管理的Main布局
 * */
Ext.define("AM.view.MainLayout",{
	extend:'Ext.panel.Panel',
	alias:'widget.mainlayout',
	id:'MainLayout',
	defaults:{
		split:true,
		bodyStyle:'padding 1px'
	},
	layout:'border',
	items:[{
			title:'部门树',
			region:'west',
			xtype:'panel',
			margins:'5 2 5 5',//内边距对应上右下左
			width:200,
			collapsible:true,//面板是否可折叠
			id:'westTree',
			layout:'fit',
			items:[{
				id:'deptTree',
				xtype:'deptTree'
			}]
		},{
			id:'center',
	        region: 'center',
	        layout: 'border',
	        border: false,
	        items: [{
		            region: 'center',
		            xtype:'tabPanel',//tabpanel
		            minHeight: 80
	        	},{
		            region: 'south',
		            height: 100,
		            split: true,
		            collapsible: true,
		            title: 'Splitter above me',
		            minHeight: 60,
		            html: 'center south'
	        }]
    }],
    tbar:[
          {xtype:'button',id:'addDeptList',text:'添加部门分类',iconCls:'table_add'},
          {xtype:'button',id:'addDept',text:'添加部门',iconCls:'table_add'},
          {xtype:'button',id:'removeDept',text:'移除部门',iconCls:'table_remove'},
          {xtype:'button',id:'editDept',text:'编辑部门',iconCls:'table_edit'},
          {xtype:'button',id:'showDept',text:'显示',iconCls:'table_show'}
    ]
});